﻿using System;
using System.Collections.Generic;
using System.Text;
using NHibernate;
using NHibernate.Expression;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Queries;

namespace Mang24k99.Model.KEYW
{
    [ActiveRecord(Table = "KT_KEYW_NEWSTRAWORD_History")]
    public partial class MKtKeywNewstrawordHistory : ActiveRecordBase
    {
        public static IList<MKtKeywNewstrawordHistory> SelectAll()
        {
            return (IList<MKtKeywNewstrawordHistory>)FindAll(typeof(MKtKeywNewstrawordHistory));
        }
        public static MKtKeywNewstrawordHistory SelectByPrimaryKey(object ID)
        {
            return (MKtKeywNewstrawordHistory)FindByPrimaryKey(typeof(MKtKeywNewstrawordHistory), ID);
        }
        public static IList<MKtKeywNewstrawordHistory> SelectALLByProperty(string property, object value)
        {
            return (IList<MKtKeywNewstrawordHistory>)FindAllByProperty(typeof(MKtKeywNewstrawordHistory), property, value);
        }
        public static IList<MKtKeywNewstrawordHistory> SelectALLSliced(int firstResult, int maxResult, NHibernate.Expression.DetachedCriteria criteria)
        {

            return (IList<MKtKeywNewstrawordHistory>)SlicedFindAll(typeof(MKtKeywNewstrawordHistory), firstResult, maxResult, criteria);
        }



        /// <summary>
        /// Gets or sets the ID.()
        /// </summary>
        /// <value>The ID.</value>
        [PrimaryKey(PrimaryKeyType.Native, "ID")]
        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }


        /// <summary>
        /// Gets or sets the WordNO.()
        /// </summary>
        /// <value>The WordNO.</value>
        [Property("WORD_NO")]
        public int? WordNO
        {
            get
            {
                return _WordNO;
            }
            set
            {
                _WordNO = value;
            }
        }


        /// <summary>
        /// Gets or sets the WordName.()
        /// </summary>
        /// <value>The WordName.</value>
        [Property("WORD_NAME")]
        public string WordName
        {
            get
            {
                return _WordName;
            }
            set
            {
                _WordName = value;
            }
        }


        /// <summary>
        /// Gets or sets the ChSpell.()
        /// </summary>
        /// <value>The ChSpell.</value>
        [Property("CH_SPELL")]
        public string ChSpell
        {
            get
            {
                return _ChSpell;
            }
            set
            {
                _ChSpell = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsValidate.()
        /// </summary>
        /// <value>The IsValidate.</value>
        [Property("IS_VALIDATE")]
        public int? IsValidate
        {
            get
            {
                return _IsValidate;
            }
            set
            {
                _IsValidate = value;
            }
        }


        /// <summary>
        /// Gets or sets the IsLeaf.()
        /// </summary>
        /// <value>The IsLeaf.</value>
        [Property("IS_LEAF")]
        public int? IsLeaf
        {
            get
            {
                return _IsLeaf;
            }
            set
            {
                _IsLeaf = value;
            }
        }


        /// <summary>
        /// Gets or sets the PathDes.()
        /// </summary>
        /// <value>The PathDes.</value>
        [Property("PATH_DES")]
        public string PathDes
        {
            get
            {
                return _PathDes;
            }
            set
            {
                _PathDes = value;
            }
        }


        /// <summary>
        /// Gets or sets the ParentID.()
        /// </summary>
        /// <value>The ParentID.</value>
        [Property("PARENT_ID")]
        public int? ParentID
        {
            get
            {
                return _ParentID;
            }
            set
            {
                _ParentID = value;
            }
        }


        /// <summary>
        /// Gets or sets the InputTime.()
        /// </summary>
        /// <value>The InputTime.</value>
        [Property("INPUT_TIME")]
        public DateTime? InputTime
        {
            get
            {
                return _InputTime;
            }
            set
            {
                _InputTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the ModifyTime.()
        /// </summary>
        /// <value>The ModifyTime.</value>
        [Property("MODIFY_TIME")]
        public DateTime? ModifyTime
        {
            get
            {
                return _ModifyTime;
            }
            set
            {
                _ModifyTime = value;
            }
        }


        /// <summary>
        /// Gets or sets the DeleteTime.()
        /// </summary>
        /// <value>The DeleteTime.</value>
        [Property("DELETE_TIME")]
        public DateTime? DeleteTime
        {
            get
            {
                return _DeleteTime;
            }
            set
            {
                _DeleteTime = value;
            }
        }



        private int _ID;

        private int? _WordNO;

        private string _WordName;

        private string _ChSpell;

        private int? _IsValidate;

        private int? _IsLeaf;

        private string _PathDes;

        private int? _ParentID;

        private DateTime? _InputTime;

        private DateTime? _ModifyTime;

        private DateTime? _DeleteTime;


    }
}
